package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class CommoditySortReq implements Serializable {

    @ApiModelProperty(value = "商品id",required = true)
    @NotEmpty(message = "商品id不可为空")
    private List<@NotNull(message = "商品id")Long> commodityId;

    @ApiModelProperty(value = "排序",required = true)
    @NotEmpty(message = "排序不可为空")
    private List<Long> sort;
}
